﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using Jobs.Inf.DataContext;
using Jobs.Inf.Entity;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            //SqlConnection con = new SqlConnection(@"Data Source=.\sqlexpress;Initial Catalog=SinoSpaceDb;Integrated Security=True");
            //con.Open();

            using (Context ctx = new Context())
            {
                int i = ctx.Delete<ResumeSheet>()
                    .WhereSet(c => c.Id, WhereOperator.Equal, 1)
                    .And()
                    .WhereSet(c => c.RealName, WhereOperator.Equal, "1111")
                    .End()
                    .Excute();

                Console.WriteLine(i);
                Console.ReadKey();
            }
        }
    }
}
